import { createApp } from 'vue'
import './style.css'
//引入element-ui
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import SvgIcon from './components/SvgIcon/index.vue'
import  "virtual:svg-icons-register";
import router from './router';
import App from './App.vue'
import {createPinia} from "pinia";
import zhLocale  from "element-plus/es/locale/lang/zh-cn";
import "vue3-tree-org/lib/vue3-tree-org.css";
import BigNumber from 'bignumber.js';
import VueIframe from "vue-iframes" ;
const pinia = createPinia()
const app=createApp(App)

app.use(ElementPlus,{
    locale: zhLocale
})
app.use(VueIframe)
app.use(router)
app.use(pinia)
app.use(BigNumber)
// 注册全局组件
app.component('SvgIcon',SvgIcon)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.mount('#app')
